<?php
/**
 * 来访的人
 * 
 * @author daniel <desheng.young@gmail.com>
 */
class RecshopWidget extends Widget
{
	/**
	 * 推荐店铺
	 * 精品店铺
	 * 
	 */
	public function render($data)
	{
		
		$data['title']  = '精品网摊';
		$data['list'] = M('user_basicfile')->field('uid, uname, shopname')
						->where('recommend =1')
						->order('id ASC')->limit(6)->findAll();

		$content = $this->renderFile(ADDON_PATH . '/widgets/Recshop.html', $data);

		return $content;
	}
}